Add support for controls whose parent is not the uifigure.#5
Add support for controls whose parent is not the uifigure.#5davidn-IA wants to merge 1 commit intoStackOverflowMATLABchat:developfrom
Conversation
This allows, for example, a text area inside a panel, to have the text
formatted with bold face font. Previously this caused an error.
f = uifigure('Position', [680 558 560 420]);
p = uipanel(f,'Position',[20 20 520 380]);
txa = uitextarea(p, ...
'Value', 'Lorem ipsum', ...
'Position',[20 20 480 340]);
mlapptools.fontWeight(txa, 'bold');
|
Thanks for the catch, we haven't looked too much at UI elements that aren't direct children of the I would prefer to use If not, I can add & push sometime this afternoon. |
|
Hi @davidn-IA, nice to see you here :-) I think it would be better to leave the existing code as-is (i.e., a simple call to |
|
Thanks @altmany, that makes more sense. I forgot that there are multiple calls to I've updated my comment above. |
|
@davidn-IA Feel free to add another commit to this PR to save time. When merging we'll just squash :) |
|
Fix has been implemented & pushed with 88b82f6 (fat-fingered the commit message reference) This can be closed, thanks again for spotting the issue! |
This allows, for example, a text area inside a panel, to have the text
formatted with bold face font. Previously this caused an error.
f = uifigure('Position', [680 558 560 420]);
p = uipanel(f,'Position',[20 20 520 380]);
txa = uitextarea(p, ...
'Value', 'Lorem ipsum', ...
'Position',[20 20 480 340]);
mlapptools.fontWeight(txa, 'bold');